package com.qyhl.school.school.center.certificate;


import com.qyhl.webtv.commonlib.entity.school.SchoolCertificateBean;

public class SchoolCenterCertificatePresenter implements SchoolCenterCertificateContract.SchoolCenterCertificatePresenter {
    private SchoolCenterCertificateContract.SchoolCenterCertificateView mView;
    private SchoolCenterCertificateModel mModel;

    public SchoolCenterCertificatePresenter(SchoolCenterCertificateContract.SchoolCenterCertificateView mView) {
        this.mView = mView;
        this.mModel = new SchoolCenterCertificateModel(this);
    }

    @Override
    public void getData(String username) {
        mModel.getData(username);
    }

    @Override
    public void setData(SchoolCertificateBean bean) {
        mView.setData(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
